//	获取banner
export const doBanner = () => uni.$u.get("/index/test/getBanner");

//	获取试卷列表
export const doPaper = data => uni.$u.post("/index/index/paperList", data);
//	获取目录
export const doChapter = data => uni.$u.get("/index/exam/chapter", data);

//	获取目录详情
export const doChapterDetail = data =>
  uni.$u.get("/index/test/getPaperById", {
    paper_id,
  });

//	获取试题
export const doAnswer = chapter_id =>
  uni.$u.get("/index/exam/questionListByChapter", {
    chapter_id,
  });

//	获取所有试题
export const doAllAnswer = data => uni.$u.get("index/exam/questionListByCity", data);

//	获取单个试题
export const oneQuestionDetail = qid =>
  uni.$u.get("/index/exam/oneQuestionDetail", {
    qid,
  });
//	获取五个试题
export const moreQuestionDetail = ids =>
  uni.$u.get("/index/exam/moreQuestionDetail", {
    ids,
  });
//	添加浏览记录
export const doView = data => uni.$u.post("/index/exam/addViewRecord", data);
//	获取浏览记录
export const getViewRecord = data => uni.$u.post("/index/exam/getViewRecord", data);
//	所有添加答题记录
export const addAnswerRecord = data => uni.$u.post("/index/exam/addAnswerRecord", data);
//	获取答题记录
export const getAnswerRecord = data => uni.$u.post("/index/exam/getAnswerRecord", data);
//	获取城市简称
export const cityname = data => uni.$u.post("/index/index/cityName", data);
// 获取所有城市
export const allCity = data => uni.$u.post("/index/index/allCity", data);
// 获取热门城市
export const hotCity = data => uni.$u.post("/index/index/hotCity", data);
//	添加答题记录
export const doRecord = data => uni.$u.post("/index/test/addAnswerRecord", data);
// 获取套餐
export const getProduct = data => uni.$u.post("/index/order/getProduct", data);
// 抖音下单
export const placeOrder = data => uni.$u.post("/index/order/placeDyOrder", data);

// 微信下单
export const wxplaceOrder = data => uni.$u.post("/index/order/placeWxOrder", data);

// 快手下单
export const placeKsOrder = data => uni.$u.post("/index/order/placeKsOrder", data);

//	获取是否解锁
export const checkUserUnlock = data => uni.$u.post("/index/index/checkUnlock", data);
//	添加错题提交记录
export const doErrRecord = data => uni.$u.post("/index/exam/addErrorRecord", data);

//	查询错题记录
export const doErrList = data => uni.$u.post("/index/exam/errorList", data);
// 获取考试试题记录
export const doEXamMockList = data => uni.$u.post("/index/exam/mockExam", data);
//	查询错题数量
export const errorCount = data => uni.$u.post("/index/exam/errorCount", data);
//	查询收藏数量
export const collectCount = data => uni.$u.post("/index/exam/collectCount", data);

//	请空错题
export const doClearErr = data => uni.$u.post("/index/exam/clearErrorQuestion", data);

//	解锁
export const doLock = data => uni.$u.post("/index/dy/unlockInfo", data);

//	报名
export const doApplication = data => uni.$u.post("/index/index/signUp", data);

//	中将列表
export const doBoxList = data => uni.$u.post("/index/dy/userBoxList", data);

//	门店
export const doShop = data => uni.$u.post("/index/dy/storeInfo", data);

//	获取倒计时
export const doCountTime = data => uni.$u.post("/index/dy/getExpireTime", data);

//	公告列表
export const doNotice = data => uni.$u.post("/index/index/noticeList", data);

//	收藏
export const doColl = data => uni.$u.post("index/exam/collect", data);

//	收藏列表
export const doCollList = data => uni.$u.post("/index/exam/collectList", data);

//	收藏和错误数量
export const doAllCount = data => uni.$u.post("/index/dy/collectAndErrorNumber", data);

//	获取订单
export const myOrder = data => uni.$u.get("/index/user/myOrder", data);

//订单详情
export const order_det = data => uni.$u.post("/index/user/orderDetail", data);

export const doCitys = data => uni.$u.post("/index/order/getOpenCity", data);
